package com.xsb.mvvmxsb.api

import com.xsb.mvvmlibrary.base.BaseResponse
import com.xsb.mvvmxsb.bean.BannerResponse
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Headers

/**
 *     author : 薛少博
 *     e-mail : xsb@zlhopesun.com
 *     time   : 2021/5/19
 *     desc   : 类说明
 */
interface Apiserver {
    companion object {
        const val SERVER_URL = "https://wanandroid.com/"
        //const val SERVER_URL1 = "https://wanandroid.com/"
    }


    /**
     * 获取banner数据
     */
    @Headers("url_name:base_one")
    @GET("banner/json")
    fun getBanner(): Observable<BannerResponse>
}